<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button id="btn">提交</button>
    <script>
      const btn = document.getElementById("btn");
      const f1 = function () {
        console.log(this);
      };
      const f2 = () => {
        console.log(this);
      };

      // btn.addEventListener("click", f1);
      btn.addEventListener("click", function () {
        console.log(this);
        // window.f1();
        // window.confirm()
        // console.log()

        f2();
      });
    </script>
  </body>
</html>
